package com.ll.menu.user.app.event;

import android.support.annotation.IntDef;

public class EventMain {
    public static final int EVENT_TOKEN_TIME_OUT = 1;
    public static final int EVENT_USER_DELETED = 2;

    @IntDef({EVENT_TOKEN_TIME_OUT,EVENT_USER_DELETED})
    @interface EventType{}

    @EventType
    private int type;

    public static EventMain create(@EventType int eventType) {
        EventMain event = new EventMain();
        event.type = eventType;
        return event;
    }

    @EventType
    public int getEventType(){
        return type;
    }
}
